<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Referência da Template de Classe mutate_bit_by_bit_thread&lt; _ty, _realTy &gt;</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Busca');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;Principal</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Arquivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Busca" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Lista&nbsp;de&nbsp;Componentes</span></a></li>
      <li><a href="hierarchy.html"><span>Hierarquia&nbsp;de&nbsp;Classes</span></a></li>
      <li><a href="functions.html"><span>Componentes&nbsp;Membros</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referência da Template de Classe mutate_bit_by_bit_thread&lt; _ty, _realTy &gt;</h1><!-- doxytag: class="mutate_bit_by_bit_thread" --><!-- doxytag: inherits="mutate_bit_by_bit,genetic_operator_thread" -->
<p><code>#include &lt;<a class="el" href="mutate__bit__by__bit__thread_8h_source.html">mutate_bit_by_bit_thread.h</a>&gt;</code></p>
<div class="dynheader">
Diagrama de Hierarquia para mutate_bit_by_bit_thread&lt; _ty, _realTy &gt;:</div>
<div class="dynsection">
 <div class="center">
  <img src="classmutate__bit__by__bit__thread.png" usemap="#mutate_bit_by_bit_thread&lt; _ty, _realTy &gt;_map" alt=""/>
  <map id="mutate_bit_by_bit_thread&lt; _ty, _realTy &gt;_map" name="mutate_bit_by_bit_thread&lt; _ty, _realTy &gt;_map">
<area href="classmutate__bit__by__bit.html" alt="mutate_bit_by_bit&lt; _ty, _realTy &gt;" shape="rect" coords="0,56,245,80"/>
<area href="classgenetic__operator__thread.html" alt="genetic_operator_thread&lt; _ty, _realTy &gt;" shape="rect" coords="255,56,500,80"/>
<area href="classgenetic__operator.html" alt="genetic_operator&lt; _ty, _realTy &gt;" shape="rect" coords="0,0,245,24"/>
</map>
 </div>
</div>

<p><a href="classmutate__bit__by__bit__thread-members.html">Lista de todos os Membros.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Tipos Públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef boost::mutex::scoped_lock&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmutate__bit__by__bit__thread.html#a059838b054d4de64b20d33d1db7e89c0">scoped_lock</a></td></tr>
<tr><td colspan="2"><h2>Métodos Públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmutate__bit__by__bit__thread.html#a3f2bb991bf06934cb614d2fb91f2bf0a">mutate_bit_by_bit_thread</a> (<a class="el" href="classpopulation.html">population</a>&lt; _ty, _realTy &gt; *popPt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmutate__bit__by__bit__thread.html#a13d804deae7d91aa75897068eb733050">ConsumeAndProduce</a> (void)</td></tr>
<tr><td colspan="2"><h2>Métodos Protegidos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmutate__bit__by__bit__thread.html#a452b4832fd083ab19d3f3f65b79bf271">ApplyMutateOperatorInIndividual</a> (<a class="el" href="classindividual.html">individual</a>&lt; _ty, _realTy &gt; *id)</td></tr>
<tr><td colspan="2"><h2>Métodos Protegidos Estáticos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmutate__bit__by__bit__thread.html#a6f3893ebf8126e17b2f45e694811765f">CallConsumeAndProduce</a> (void *v)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Descrição Detalhada</h2>
<h3>template&lt;typename _ty, typename _realTy&gt;<br/>
 class mutate_bit_by_bit_thread&lt; _ty, _realTy &gt;</h3>

<p>Classe que define um objeto do tipo operador genético. Este objeto herda os atributos das classes <a class="el" href="classgenetic__operator.html">genetic_operator</a> e <a class="el" href="classmutate__bit__by__bit.html">mutate_bit_by_bit</a>.</p>
<dl><dt><b>Template Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_ty</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_realTy</em>&nbsp;</td><td></td></tr>
  </table>
  </dd>
</dl>
<hr/><h2>Definições de Tipos</h2>
<a class="anchor" id="a059838b054d4de64b20d33d1db7e89c0"></a><!-- doxytag: member="mutate_bit_by_bit_thread::scoped_lock" ref="a059838b054d4de64b20d33d1db7e89c0" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _ty, typename _realTy&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef boost::mutex::scoped_lock <a class="el" href="classmutate__bit__by__bit__thread.html">mutate_bit_by_bit_thread</a>&lt; _ty, _realTy &gt;::<a class="el" href="classmutate__bit__by__bit__thread.html#a059838b054d4de64b20d33d1db7e89c0">scoped_lock</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Definição do padrão scoped lock. </p>

<p>Reimplementação de <a class="el" href="classgenetic__operator__thread.html#abe926f8fc2a1548516dad216a1acd4fb">genetic_operator_thread&lt; _ty, _realTy &gt;</a>.</p>

</div>
</div>
<hr/><h2>Construtores &amp; Destrutores</h2>
<a class="anchor" id="a3f2bb991bf06934cb614d2fb91f2bf0a"></a><!-- doxytag: member="mutate_bit_by_bit_thread::mutate_bit_by_bit_thread" ref="a3f2bb991bf06934cb614d2fb91f2bf0a" args="(population&lt; _ty, _realTy &gt; *popPt)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _ty , typename _realTy &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmutate__bit__by__bit__thread.html">mutate_bit_by_bit_thread</a>&lt; _ty, _realTy &gt;::<a class="el" href="classmutate__bit__by__bit__thread.html">mutate_bit_by_bit_thread</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpopulation.html">population</a>&lt; _ty, _realTy &gt; *&nbsp;</td>
          <td class="paramname"> <em>popPt</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Método construtor.</p>
<p>popPt Ponteiro para a populção na qual será aplicado o operador. </p>

</div>
</div>
<hr/><h2>Métodos</h2>
<a class="anchor" id="a452b4832fd083ab19d3f3f65b79bf271"></a><!-- doxytag: member="mutate_bit_by_bit_thread::ApplyMutateOperatorInIndividual" ref="a452b4832fd083ab19d3f3f65b79bf271" args="(individual&lt; _ty, _realTy &gt; *id)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _ty , typename _realTy &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classmutate__bit__by__bit__thread.html">mutate_bit_by_bit_thread</a>&lt; _ty, _realTy &gt;::ApplyMutateOperatorInIndividual </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classindividual.html">individual</a>&lt; _ty, _realTy &gt; *&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Aplica o operador de mutação em um indivíduo</p>
<p>id O indivíduo aonde será aplicado o operador de mutação.</p>
<p>Método que recebe como parâmetro um ponteiro para um indivíduo e aplica o operador de mutação sobre o mesmo. Basicamente o método caminha sobre cada objeto coordenada do indivíduo, e aplica o operador sobre cada coordenada. A probabilidade de mutação de cada bit é definidia no arquivo <a class="el" href="definitions_8h.html">definitions.h</a></p>
<dl><dt><b>Template Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_ty</em>&nbsp;</td><td>Tipo de cada coordenada para a representação binária </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_realTy</em>&nbsp;</td><td>Tipo das coordenadas para a representação real  id Ponteiro para o indivíduo no qual será aplicado o operador de mutação bit a bit. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6f3893ebf8126e17b2f45e694811765f"></a><!-- doxytag: member="mutate_bit_by_bit_thread::CallConsumeAndProduce" ref="a6f3893ebf8126e17b2f45e694811765f" args="(void *v)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _ty, typename _realTy&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static void* <a class="el" href="classmutate__bit__by__bit__thread.html">mutate_bit_by_bit_thread</a>&lt; _ty, _realTy &gt;::CallConsumeAndProduce </td>
          <td>(</td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>v</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Usado para criar as threads</p>
<p>v Ponteiro para o operador que chamará as threads.</p>
<dl class="return"><dt><b>Retorna:</b></dt><dd>Ponteiro NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="a13d804deae7d91aa75897068eb733050"></a><!-- doxytag: member="mutate_bit_by_bit_thread::ConsumeAndProduce" ref="a13d804deae7d91aa75897068eb733050" args="(void)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _ty , typename _realTy &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classmutate__bit__by__bit__thread.html">mutate_bit_by_bit_thread</a>&lt; _ty, _realTy &gt;::ConsumeAndProduce </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Método a ser executado pelas threads</p>
<p>Método a ser executado pelas threads do operador de mutação bit a bit. O operador remove um indivíduo da sua população, aplica o operador de mutação, e já deposita o mesmo no operador que consome os indivíduos do operador de mutação, que no caso, é o operador de seleção.</p>
<dl><dt><b>Template Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_ty</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_realTy</em>&nbsp;</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>A documentação para esta classe foi gerada a partir do seguinte arquivo:<ul>
<li><a class="el" href="mutate__bit__by__bit__thread_8h_source.html">mutate_bit_by_bit_thread.h</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Todos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Arquivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Definições de Tipos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Amigas</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Gerado em Sat Oct 30 13:47:50 2010 por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
